package entity

type QuanxiQuestion struct {
	Id        int64  `gorm:"column:id;primary_key" json:"id"`
	UserId    string `gorm:"column:user_id;type:varchar(255);not null" json:"user_id"`
	Question  string `gorm:"column:question;type:varchar(255);not null" json:"question"`
	Options   string `gorm:"column:options;type:varchar(2048);not null" json:"options"`
	Type      int    `gorm:"column:type;type:integer;not null" json:"type"`
	CreatedAt int64  `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt int64  `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (q *QuanxiQuestion) TableName() string {
	return "quanxi_questions"
}
